@import '~ant-design-vue/es/style/themes/default.less';
@import './styles/index.less';
html,
body,
#app, #root {
  height: 100%;
}

.colorWeak {
  filter: invert(80%);
}

.ant-layout.layout-basic {
  height: 100vh;
  min-height: 100vh;
}

canvas {
  display: block;
}

body {
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
ul, p {
  margin: 0;
  padding: 0;
}

ul,
ol {
  list-style: none;
}

// 列表页搜索栏
.search-card {
  .ant-card-body {
    padding:  24px 24px 0;
  }
}

// 数据列表 样式
.table-alert {
  margin-bottom: 16px;
}
// 数据列表 操作
.table-operator {
  margin-bottom: 18px;
}

.ant-table {
  .ant-table-content {
    .ant-table-scroll {
      .ant-table-body {
        overflow: auto!important;
      }
    }
  }
}

// 数据列表 搜索条件
.table-page-search-wrapper {

  .ant-form-inline {
    .ant-form-item {
      display: flex;
      margin-bottom: 24px;
      margin-right: 0;

      .ant-form-item-control-wrapper {
        flex: 1 1;
        display: inline-block;
        vertical-align: middle;
      }

      > .ant-form-item-label {
        line-height: 32px;
        padding-right: 8px;
        width: 90px;
      }
      .ant-form-item-control {
        height: 32px;
        line-height: 32px;
      }
    }
  }

  .table-page-search-submitButtons {
    display: block;
    margin-bottom: 24px;
    @media (max-width: 768px) {
      text-align: right;
    }
    .ant-btn {
      margin-left: 8px;
      &:first-child {
        margin-left: 0;
      }
    }
  }
}

@media (max-width: @screen-xs) {
  .ant-table {
    width: 100%;
    overflow-x: auto;
    &-thead > tr,
    &-tbody > tr {
      > th,
      > td {
        white-space: pre;
        > span {
          display: block;
        }
      }
    }
  }
}

// 生成间距样式
@list: 2, 4, 6, 8, 10, 12, 14, 16, 20, 22, 24, 26, 30, 32, 34, 36;
each(@list, {
  .m-r-@{value} {
    margin-right: @value * 1px;
  }
  .m-t-@{value} {
    margin-top: @value * 1px;
  }
  .m-b-@{value} {
    margin-bottom: @value * 1px;
  }
  .m-l-@{value} {
    margin-left: @value * 1px;
  }
  .p-@{value} {
    padding: @value * 1px;
  }
  .p-t-@{value} {
    padding-top: @value * 1px;
  }
  .p-b-@{value} {
    padding-bottom: @value * 1px;
  }
  .p-r-@{value} {
    padding-right: @value * 1px;
  }
  .p-l-@{value} {
    padding-left: @value * 1px;
  }
});

.custom-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.c-confirm {
  .ant-modal {
    top: 200px;
  }
}

.ant-sticky {
  position: sticky;
  top: 0px;
  z-index: 999;
}